﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProjTemp.Desktop.Common.Module;
using Mysoft.ServerMonitoring.OMKit.Infrastructure;
using Microsoft.Practices.Prism.MefExtensions.Modularity;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using System.ComponentModel.Composition;
using ProjTemp.Common.Logging;
using Microsoft.Practices.Prism.Events;
using Microsoft.Practices.ServiceLocation;

namespace Mysoft.ServerMonitoring.OMKit.ClientServers
{
    [ModuleExport(typeof(ClientServersModule), InitializationMode = InitializationMode.WhenAvailable)]
    internal class ClientServersModule : ModuleBase
    {
        [ImportingConstructor]
        public ClientServersModule(ILogger logger, IRegionManager regionManager, IEventAggregator eventAggregator, IServiceLocator serviceLocator)
            : base(logger, regionManager, eventAggregator, serviceLocator)
        {
        }

        public override void Initialize()
        {
            this._regionManager.RegisterViewWithRegion(RegionNames.LeftClientsRegion, typeof(ClientServers.Views.ClientServersTreeView));
        }
    }
}
